package net.lcheng.service.impl;

import net.lcheng.dao.UserCommissionMapper;
import net.lcheng.model.UserCommission;
import net.lcheng.model.UserCommissionExample;
import net.lcheng.service.UserCommissionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by zwr on 2016/7/23 0023.
 */
@Service
public class UserCommissionServiceImpl implements UserCommissionService {
    @Resource
    private UserCommissionMapper userCommissionMapper;
    @Override
    public List<UserCommission> getUserCommissionByUserId(String userId) {
        UserCommissionExample example=new UserCommissionExample();
        example.or().andUserUserIdEqualTo(userId);
        return userCommissionMapper.selectByExample(example);
    }
}
